package com.unknowpupil.design.composite;

/**
 * @Description: <p>
 *
 * </p>
 * @Author: <a> w10g </a>
 * @CreateDate: Create in 2020/4/28 9:35
 * @Classname: Client
 * @Version: 1.0
 */
public class Client {

    public static void main(String[] args) {
        AbstractFile f2 ,f3,f5,f6;
        Folder  f4 = new Folder("图片");
        Folder  f1 =new Folder("我的收藏");
        f2 =new ImageFile("大图片.jpg");
        f3 =new TextFile("大文本");
        f4.add(f2);
        f1.add(f3);
        f1.add(f4);

        f1.killVirus();
    }
}
